package com.syygl.chaseDemo.controller;

import com.syygl.chaseDemo.entity.Object4AllLifeCycle;
import com.syygl.chaseDemo.service.ServiceTest2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    ServiceTest2 serviceTest2;


    @RequestMapping("/test")
    public void test(){
        Object4AllLifeCycle object4AllLifeCycle = new Object4AllLifeCycle();

        serviceTest2.test2(object4AllLifeCycle);
    }
}
